Page({
  data: {
    // imgs: [
    //   "https://guanggaohaocai.oss-cn-shanghai.aliyuncs.com/%E5%90%88%E6%88%90%201.mp4",
    // ],
    // img: "https://guanggaohaocai.oss-cn-shanghai.aliyuncs.com/%E5%90%88%E6%88%90%201.mp4",
    // duration: 2000, // 滑动动画时长
    // indicatorDots: true, // 是否显示指示点
    // autoplay: true, // 是否自动切换
    // interval: 3000, // 自动切换时间间隔
    videoPath:'https://guanggaohaocai.oss-cn-shanghai.aliyuncs.com/%E5%90%88%E6%88%90%201_1.mp4',
    windowHeight:'100%',
    windowWidth:'100%'
  },
  start: function () { 
      wx.switchTab({
        url: '../index/index',
        fail(res) {  
          console.log(res); 
      }
    })
   
    // wx.showToast({
    //   title: '该功能未上线！',
    //   icon: 'none',
    //   duration: 1500
    // })
  },
  onLoad:function(){
    var that = this;
    wx.getSystemInfo({
      success: (result) => {
        // console.log(result.windowWidth);
        that.setData({
          windowHeight:result.windowHeight,
          windowWidth:result.windowWidth
        })
      },
    })
  }
})

